home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / tools / czesc_3 / phoonsrc / libi / mulsi3.c < prev    next >
C/C++ Source or Header  |  1994-02-20  |  204b  |  16 lines

  1. #include "common.h"
  2.  
  3. SItype
  4. __mulsi3 (a, b)
  5.      SItype a,b;
  6. {
  7.   int neg = (a < 0) != (b < 0);
  8.   SItype res;
  9.  
  10.   if (a < 0) a = -a;
  11.   if (b < 0) b = -b;
  12.   
  13.   res = mulu (a,b);
  14.   return neg ? -res : res;
  15. }
  16.